﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var orderId = $.request("orderId"),
        siteId = $.request("siteId"),
        spaceId = $.request("spaceId");

    $(function () {
        if (!!orderId && !!siteId) {
            $("#OrderId").val(orderId);
            $("#SiteId").val(siteId);
            $("#SpaceId").val(spaceId);
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/OrderFlowManage/ClientOrder/SubmitPreviewTimeForm?keyValue=" + orderId,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().vm.takelook.initTakelook();
                $.loading(false);
            }
        });
    }
</script>

<form id="form1">
    <input type="hidden" id="OrderId" name="OrderId" value="" />
    <input type="hidden" id="SiteId" name="SiteId" value="" />
    <input type="hidden" id="SpaceId" name="SpaceId" value="" />
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">开始时间：</th>
                <td class="formValue">
                    <input id="F_StartTime" name="F_StartTime" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'yyyy-M-d HH:mm', minDate:'%y-%M-{%d+1}', maxDate:'#F{$dp.$D(\'F_EndTime\')||\'2020-10-01\'}', readOnly:true})" placeholder="请录入开始时间" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">结束时间：</th>
                <td class="formValue">
                    <input id="F_EndTime" name="F_EndTime" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'yyyy-M-d HH:mm', minDate:'#F{$dp.$D(\'F_StartTime\')}',maxDate:'2020-10-01', readOnly:true})" placeholder="请录入结束时间" />
                </td>
            </tr>
        </table>
    </div>
</form>


